package com.lin.cms.domain;

import java.io.Serializable;
import java.util.Date;

public class Message implements Serializable {

	private static final long serialVersionUID = 1L;

	private int msgId;

	private String msgTitle;

	private String msgContent;

	private Date sendTime;

	private int msgSendUser;

	private int msgReceiverUser;

	private int siteId;

	private String msgStatus;

	private int msgBox;

	public Message() {
	}

	public int getMsgId() {
		return msgId;
	}

	public void setMsgId(int msgId) {
		this.msgId = msgId;
	}

	public String getMsgTitle() {
		return msgTitle;
	}

	public void setMsgTitle(String msgTitle) {
		this.msgTitle = msgTitle;
	}

	public String getMsgContent() {
		return msgContent;
	}

	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public int getMsgSendUser() {
		return msgSendUser;
	}

	public void setMsgSendUser(int msgSendUser) {
		this.msgSendUser = msgSendUser;
	}

	public int getMsgReceiverUser() {
		return msgReceiverUser;
	}

	public void setMsgReceiverUser(int msgReceiverUser) {
		this.msgReceiverUser = msgReceiverUser;
	}

	public int getSiteId() {
		return siteId;
	}

	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}

	public String getMsgStatus() {
		return msgStatus;
	}

	public void setMsgStatus(String msgStatus) {
		this.msgStatus = msgStatus;
	}

	public int getMsgBox() {
		return msgBox;
	}

	public void setMsgBox(int msgBox) {
		this.msgBox = msgBox;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + msgId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Message other = (Message) obj;
		if (msgId != other.msgId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"msgId=" + "'" + msgId + "'" + 
			")";
	}
	
}
